.el-collapse {
  .collapse__title {
    font-weight: 600;
    padding: 0 8px;
    font-size: 1.2em;
    line-height: 1.1em;
  }

  .el-collapse-item__content {
    padding: 0 8px;
  }
}

.el-divider--horizontal {
  margin-bottom: 10px;
  margin-top: 10px;
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type='file'] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

/*-------------Dialog-------------**/
.el-overlay {
  overflow: hidden;

  .el-overlay-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    .el-dialog {
      margin: 0 auto !important;

      .el-dialog__body {
        padding: 15px !important;
      }

      .el-dialog__header {
        padding: 16px 16px 8px 16px;
        box-sizing: border-box;
        border-bottom: 1px solid var(--brder-color);
        margin-right: 0;
      }
    }
  }
}

.el-dialog {
  border-radius: 8px !important;
}

.el-dialog__body {
  max-height: calc(90vh - 111px) !important;
  overflow-y: auto;
  overflow-x: hidden;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse > div > .el-submenu > .el-submenu__title .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link {
  color: var(--el-color-primary) !important;
}

/* 当 el-form 的 inline 属性为 true 时 */
/* 设置 label 的宽度默认为 68px */
.el-form--inline .el-form-item__label {
  width: 68px;
}

.el-select__wrapper {
  border-radius: 6px !important;
}

.el-input__wrapper {
  border-radius: 6px !important;
  // 鼠标经过样式
  &:hover {
    //box-shadow: 1px 1px 1px 1px  var(--el-color-primary) !important;
  }

  // 得到焦点样式
  &:focus-within {

  }
}

/* 设置 el-input 的宽度默认为 240px */
.ant-form-inline .el-input {
  width: 12rem;
}

/* 设置 el-select 的宽度默认为 240px */
.ant-form-inline .el-select {
  width: 12rem;
}


/* ---el-table滚动条公共样式--- */
.el-scrollbar {
  // 使滚动条常驻显示
  .el-scrollbar__bar.is-horizontal {
    //display: block !important;
  }

  // 横向滚动条
  .el-scrollbar__bar.is-horizontal {
    height: 6px; // 横向滑块的宽度
    border-radius: 10px; // 圆角度数
    background-color: var(--el-color-primary-light-9);

    .el-scrollbar__thumb {
      background-color: var(--el-color-primary-light-3); // 滑块背景色
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.15); // 滑块阴影
    }

    //opacity: 1; // 默认滚动条自带透明度
  }

  // 纵向滚动条
  .el-scrollbar__bar.is-vertical {
    width: 6px; // 纵向滑块的宽度
    background-color: var(--el-color-primary-light-9);
    border-radius: 10px;

    .el-scrollbar__thumb {
      //opacity: 1;
      background-color: var(--el-color-primary-light-3);
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
      right: 0;
    }
  }
}
// 虚拟滚动条样式
.el-virtual-scrollbar{
  background-color: var(--el-color-primary-light-9);
  .el-scrollbar__thumb{
    background-color: var(--el-color-primary-light-3);
    &:hover{
      background-color: var(--el-color-primary);
    }
  }
}
/*菜单样式*/
.el-menu-item {
  //margin: 0 10px 0 10px;
  /* 设置用户禁止选中 */
  user-select: none;
  border-radius: 8px;
  margin: 4px 0 4px;
  box-sizing: content-box;
  @apply dark:c-#E5E3FA;
  // 设置鼠标悬停时el-menu-item的样式
  &:hover {
    color: var(--el-color-primary);
    background: var(--el-color-primary-light-8);
    //margin: 0 10px 0 10px;
    //border-left: $aside-menu-border-left solid var(--el-color-primary);
    transition: color 0s, border-color 0s !important;
    // & 含义 .el-menu-item
    border-radius: 8px;
    margin: 4px 0 4px;
    box-sizing: content-box;
    // 实现鼠标悬停时icon变色
    i {
      color: var(--el-color-primary);
    }
  }

  // 设置选中el-menu-item时的样式
  &.is-active {
    transition: color 0s, border-color 0s !important;
    color: var(--el-color-primary);
    background: var(--el-color-primary-light-8);
    //margin: 0 10px 0 10px;
    border-radius: 8px;
    margin: 4px 0 4px;
    box-sizing: content-box;
  }
}

/*抽屉移除padding*/
.full-drawer {
  .el-drawer__body {
    padding: 0 !important;
  }
}

.el-table-v2{
  --el-table-header-bg-color: var(--tableHeaderBg) !important;
}

